define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {

    var Controller = {
        userlockcodesearch: function () {
            Controller.api.bindevent();

            $(".searchall").on("click", function () {
                var searchtime =  $("#c-searchtime").val();
                $.ajax({
                    url: "user/userlockcode/userlockcodesearch",
                    data: { searchtime: searchtime},
                    type: "post",
                    success: function (res) {
                        $(".no-margins").text(res.data.totalsearchs)
                    }
                });

            });
        },
        api: {

            bindevent: function () {
                Form.api.bindevent($("form[role=form]"));
            }
        }
    };
    return Controller;
});